package com.woniuxy.carrental.service;

import com.woniuxy.carrental.entity.CCC;
import com.woniuxy.carrental.entity.Purchase;

import java.util.Date;
import java.util.List;

/**
 * @author xilei
 * @create 2021-10-05 上午 8:36
 */
public interface PurchaseService {
    //增采购信息
//    void insertPurchase(Purchase purchase);
    void insertPurchase(String purchase_id, Date purchase_date, String car_name,
                        String carpart_name, String supplier_name, Integer car_count,
                        Integer part_count, Integer part_allsprice,
                        Integer car_allsprice,Boolean wareingstatus);

    //删车辆关系信息
    void deletePurchase(String purchase_id);

    //    查所有采购记录信息
    List<Purchase> findPurchase();
    //分页查采购记录信息
    List<Purchase> findPurchaseByPage(Integer pageIndex,Integer pageSize);
    //分页查+按条件查采购记录信息
    List<Purchase> findPurchaseByPageByParam(Integer purchase_id,Date purchase_date,
                                             String car_name,String carpart_name,
                                             String supplier_name,Integer pageIndex, Integer pageSize);
    //分页查+按条件查采购记录信息
    List<CCC> findPurchaseBy111();
    List<Purchase> findPurchaseByPage1(Integer pageIndex,Integer pageSize,boolean wareingstatus);

//查询所有可以入库的采购订单
    List<Purchase> selectAllByTrue();
}
